import axios from '@/utils/http'


//新增
export const add='/FinancialManagement/Financial/addFinancial'
//删除
export const del='/FinancialManagement/Financial/deleteFinancial'
//查询
export const search='/FinancialManagement/Financial/findFinancialByHead'
//获取
export const get='/FinancialManagement/Financial/findFinancialList'
//修改
export const update='/FinancialManagement/Financial/updateFinancial'


const financial={
    addFin(params){
        return axios.post(add,params)
    },
    delFin(params){
        return axios.post(del+"?id="+params)
    },
    searchFin(params){
        return axios.get(search,{params})
    },
    getFin(params){
        return axios.get(get,{params})
    },
    update(params){
        return axios.post(update,params)
    },
}

export default financial;